﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace BB.Apostas.Areas.Admin.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Admin/Home/

        public ActionResult Index()
        {
            //HomeViewModel vm = new HomeViewModel();
            //vm.UserDetails.Items = repository.GetUserItems();
            //vm.NewsItems.Items = repository.GetNews();
            //vm.MostPopular.Items = repository.GetPopular();

            //return View(vm);
            return View();
        }

        public ActionResult News()
        {
            //NewsItemsViewModel vm = new NewsItemsViewModel();
            //vm.Items = repository.GetNews();
            //return PartialView("NewsControl", vm);
            return PartialView("NewsControl");
        }

        public ActionResult Popular()
        {
            //MostPopularViewModel vm = new MostPopularViewModel();
            //vm.Items = repository.GetPopular();
            //return PartialView("PopularControl", vm);
            return PartialView("PopularControl");
        }

    }
}
